﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ParserClasses.Classes
{
    public class Function
    {
        private string _spelling;
        private ScannerClasses.TokenTypes.TokenType _return;
        private List<Argument> _arguments;
        private List<Statement> _statemets;
        public ScannerClasses.TokenTypes.TokenType ReturnType
        {
            get
            {
                return _return;
            }
            set
            {
                _return = value;
            }
        }

        public List<Argument> Arguments
        {
            get
            {
                return _arguments;
            }
            set
            {
                _arguments = value;
            }
        }

        public List<Statement> Statements
        {
            get
            {
                return _statemets;
            }
            set
            {
                _statemets = value;
            }

        }

        public string Spelling
        {
            get
            {
                return _spelling;
            }
            set
            {
                _spelling = value;
            }
        }

        public Function()
        {
            _arguments = new List<Argument>();
            _statemets = new List<Statement>();
        }
    }
}
